/**
 * Project: shuyin-sync
 * 
 * File Created at Apr 9, 2012
 * $Id$
 * 
 * Copyright 2008 6677bank.com Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * 6677bank Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with 6677bank.com.
 */
package com.bank6677.sync.csm.service;

import java.sql.SQLException;
import java.util.List;

/**
 * TODO Comment of ApplicationSyncRMIService
 *
 * @author liyue
 * @version ApplicationSyncRMIService.java Apr 9, 2012 5:39:44 PM
 *
 */
public interface ApplicationSyncRMIService {
    
    /**
     * 同步某些贷款申请，根据申请单号串
     * 
     * @param ids list of application id
     */
    void syncApplications(List<Long> ids) throws SQLException;

    /**
     * 同步某个时间段内的贷款申请
     * 
     * @param from 开始时间 （包括当天）yyyyMMdd
     * @param to 结束时间 （不包括当天）yyyyMMdd
     */
    void syncApplications(String from, String to) throws SQLException;
}
